﻿// -----------------------------------------------------------------------
// <copyright file="Contact.cs" company="CodePlex">
//   Copyright © CodePlex 2012
// </copyright>
// <summary>
//   Defines the Contact type.
// </summary>
// -----------------------------------------------------------------------

namespace Example.Common
{
    using System.Data;

    using DataFramework.Attributes;

    /// <summary>
    /// A contact.
    /// </summary>
    [TableMapping("CONTACTS")]
    public class Contact
    {
        /// <summary>
        /// Gets or sets the number.
        /// </summary>
        /// <value>The number.</value>
        [ColumnMapping("CONTACT_NUMBER", DbType.Decimal, true)]
        public decimal Number { get; set; }

        /// <summary>
        /// Gets or sets the id.
        /// </summary>
        /// <value>The id.</value>
        [ColumnMapping("CONTACT_ID", DbType.String, false)]
        public string Id { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        [ColumnMapping("CONTACT_NAME", DbType.String, false)]
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the phone.
        /// </summary>
        /// <value>The phone.</value>
        [ColumnMapping("CONTACT_PHONE", DbType.String, false)]
        public string Phone { get; set; }

        /// <summary>
        /// Gets or sets the email.
        /// </summary>
        /// <value>The email.</value>
        [ColumnMapping("CONTACT_EMAIL", DbType.String, false)]
        public string Email { get; set; }

        /// <summary>
        /// Gets or sets the city.
        /// </summary>
        /// <value>The city.</value>
        [ColumnMapping("CONTACT_CITY", DbType.String, false)]
        public string City { get; set; }

        /// <summary>
        /// Gets or sets the state.
        /// </summary>
        /// <value>The state.</value>
        [ColumnMapping("CONTACT_STATE", DbType.String, false)]
        public string State { get; set; }

        /// <summary>
        /// Gets or sets the address.
        /// </summary>
        /// <value>The address.</value>
        [ColumnMapping("CONTACT_ADDRESS", DbType.String, false)]
        public string Address { get; set; }

        /// <summary>
        /// Gets or sets the zip code.
        /// </summary>
        /// <value>The zip code.</value>
        [ColumnMapping("CONTACT_ZIP", DbType.String, false)]
        public string ZipCode { get; set; }
    }
}
